home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / -archivi / -recent1 / nsm_tnw041b.lha / tracknameswindow / cuttrack.c < prev    next >
C/C++ Source or Header  |  1999-01-09  |  715b  |  48 lines

  1. /*
  2.     Cuts the current track, and copies
  3.     the current trackname.
  4.  
  5.     To cut the current trackname, press
  6.     'd'+return in the tnwcontrol plug-in.
  7.  
  8.     (Can not be done in this plug-in because
  9.     there isn't any handshake-function yet.)
  10.  
  11.     Recommended shortcut: Alt+x
  12.  
  13.     Link with annomanno.o, /octacontrol.o
  14.    and /readstr.o.
  15.  
  16.     Made by Kjetil S. Matheussen 9.1.99.
  17.  
  18.     e-mail: kjetilma@ifi.uio.no
  19.  
  20.     Address:
  21.     Kjetil S. Matheussen
  22.     5423 Sogn Studentby
  23.     0858 Oslo
  24.     Norway
  25. */
  26.  
  27.  
  28.  
  29. #include "tracknameswindow.h"
  30.  
  31. void main(void){
  32.     OCTABASE ob;
  33.  
  34.     UWORD currtrack;
  35.  
  36.     if((ob=getoctabase())==0) goto exit;
  37.  
  38.     currtrack=getcurrtrack(ob);
  39.  
  40.     sendrexx("RN_CUT TRACK");
  41.     settracknamedata2(ob,currtrack);
  42.     settracknamedata(ob,GETBUF);
  43.  
  44. exit:
  45. }
  46.  
  47.  
  48.